<?php

require_once "../db/${GLOBALS['__DBTYPE']}/get/forum.php";

function showPage($page, $tpl) {  

  $start = (int)$_REQUEST['start'];
  $end = ((int)$_REQUEST['inc'] > 0) ? (int)$_REQUEST['inc'] : DEF_POST_INC;

  $fora = getFora();

  if( is_array($fora) )
    $tpl['fora'] = $fora;
  elseif( $fora === MSG_UNAUTHORIZED )
    return $page = 'Unauthorized';
  else
    return $page = 'Error';

  return $page = 'Fora';
}

?>
